﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using PlugNT.Safe;


using PlugNT.Custom;
using PlugNT.Cms.Model;

namespace PlugNT.Cms.BLL
{
    public class AdClass
    {


        private static readonly PlugNT.Cms.DAL.AdClass dal = new PlugNT.Cms.DAL.AdClass();

        public static string GetTableName()
        {
            return PlugNT.Cms.DAL.AdClass.currTableName;
        }


        /// <summary>
        /// 得到模型
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public AdClassInfo GetAdClassInfo(int id)
        {
            return dal.GetAdClassInfo(id);

        }





        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Add(AdClassInfo model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Update(AdClassInfo model)
        {
            return dal.Update(model);
        }

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool Delete(int id)
        {
            return dal.Delete(id);
        }



        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="no"></param>
        /// <returns></returns>
        public DataTable GetList()
        {
            return dal.GetList();
        }


        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DataTable GetList(int id)
        {
            return dal.GetList(id);
        }

    }
}
